//
// Description: OpenGL 引擎实现类
// Created by zhangdong on 2021/7/24.
//

#ifndef SOPENGLANDROIDRENDERER_ENGINE_IMPL_H
#define SOPENGLANDROIDRENDERER_ENGINE_IMPL_H
#include "iengine.h"
#include "icamera.h"
#include "camera_impl.h"

class EngineImpl : public IEngine {
public:
    static IEngine *getInstance();

    ~EngineImpl();

    void init() override;

    void unInit() override;

    void openCamera() override;

    void closeCamera() override;

private:
    EngineImpl();

    static IEngine *m_instance;

    ICamera *m_cam = nullptr;
};

#endif //SOPENGLANDROIDRENDERER_ENGINE_IMPL_H
